package calculator;

import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class GUI extends JFrame {

	private static final int FRAME_WIDTH = 300;
	private static final int FRAME_HEIGTH = 300;
	
	private KeyPad numpad;
	private JTextArea display;
	
	private Calculator theCalculator;
	
	public GUI(Calculator aCalculator){
		theCalculator = aCalculator;
		numpad = new KeyPad();
		
		//add visual components
		
		display = new JTextArea(4,20);
		setLayout(new FlowLayout());
		setSize(FRAME_WIDTH,FRAME_HEIGTH);
		add(display);
		add(numpad);
		
		
	}
	

	
	
	
}
